﻿
<div class="clear"></div>
</div>
<?php if (is_home() || is_category() || is_tag()) { ?>
<div id="shangxia">
	<div id="shang"></div>
	<div id="xia"></div>
</div>
<?php } else { ?>
<div id="shangxia">
	<div id="shang"></div>
	<div id="comt"></div>
	<div id="xia"></div>
</div>
<?php } ?>
</div>
<div id="footer">
	<div id="footerbar">


		<!--Copyright-->
		<div class="copyright">
			<p class="about_info">
				<a href="<?php bloginfo('home'); ?>">Home</a> | <a
					href="http://www.oparan.com/about">About</a> | <a
					href="<?php bloginfo('home');echo'/sitemap.xml'; ?>">Sitemap</a> |
				<a href="http://www.oparan.com/contact">Contact</a> | <a
					href="http://www.oparan.com/wordpress/paran-thunder-theme.html">Theme</a>
				| <a href="http://www.paranfeed.com">RSS</a>
			</p>
			<p><?php
			global $wpdb;
			$post_datetimes = $wpdb->get_row ( $wpdb->prepare ( "SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970" ) );
			if ($post_datetimes) {
				$firstpost_year = $post_datetimes->firstyear;
				$lastpost_year = $post_datetimes->lastyear;
				
				$copyright = __ ( 'Copyright &copy;&nbsp; ', 'monochrome' ) . $firstpost_year;
				if ($firstpost_year != $lastpost_year) {
					$copyright .= '-' . $lastpost_year;
				}
				$copyright .= ' ';
				
				echo $copyright;
			}
			?> <?php bloginfo('name'); ?>. All Rights Reserved. Powered By WordPress.
    <span><?php
				global $wpdb;
				$post_datetimes = $wpdb->get_row ( $wpdb->prepare ( "SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970" ) );
				if ($post_datetimes) {
					$firstpost_year = $post_datetimes->firstyear;
					$lastpost_year = $post_datetimes->lastyear;
					
					$copyright = __ ( 'Copyright &copy;&nbsp; ', 'monochrome' ) . $firstpost_year;
					if ($firstpost_year != $lastpost_year) {
						$copyright .= '-' . $lastpost_year;
					}
					$copyright .= ' ';
					
					echo $copyright;
				}
				?> <?php bloginfo('name'); ?>. All Rights Reserved. Powered By WordPress.Theme by <a
					href="http://boboboliu.com">boboboliu</a> | <script
						src="http://s22.cnzz.com/stat.php?id=4542010&web_id=4542010"
						language="JavaScript"></script>.<?php wp_loginout(); ?>.<?php wp_register('',''); ?>
</span>
			</p>
		</div>
		<!--Copyright End-->

	</div>
<?php wp_footer(); ?>
</div>
</body>
</html>
